<style>
.zoomimg{
	cursor: pointer;
	transition: all 0.6s;
}
.zoomimg:hover{
	transform: scale(4);
}
</style>
<div>
    <h2 data-translate="milkbeeApp.leaguer.home.title">Leaguers</h2>
    <jhi-alert></jhi-alert>
    <br/>
    <ul class="nav nav-tabs">
		<li role="presentation" ng-class="{'active':vm.stat==1}"><a ui-sref="leaguer({stat:'1'})" data-translate="milkbeeApp.leaguer.state.apply"></a></li>
		<li role="presentation" ng-class="{'active':vm.stat==2}"><a ui-sref="leaguer({stat:'2'})" data-translate="milkbeeApp.leaguer.state.no"></a></li>
		<li role="presentation" ng-class="{'active':vm.stat==3}"><a ui-sref="leaguer({stat:'3'})" data-translate="milkbeeApp.leaguer.state.complite"></a></li>
		<li role="presentation" ng-class="{'active':vm.stat==4}"><a ui-sref="leaguer({stat:'4'})" data-translate="milkbeeApp.leaguer.state.forbidden"></a></li>
		<li role="presentation" ng-class="{'active':vm.stat==5}"><a ui-sref="leaguer({stat:'5'})" data-translate="milkbeeApp.leaguer.state.report"></a></li>
	</ul>
    <div class="table-responsive">
        <table class="jh-table table table-striped">
            <thead>
                <tr jh-sort="vm.predicate" ascending="vm.reverse" callback="vm.transition()">
                    <th jh-sort-by="forbidden"><span data-translate="milkbeeApp.leaguer.forbidden">Forbidden</span> <span data-translate="milkbeeApp.leaguer.prevent">Prevent</span><span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="forbiddenDate"><span data-translate="milkbeeApp.leaguer.forbiddenDate">Forbidden Date</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="forbiddenMessage"><span data-translate="milkbeeApp.leaguer.forbiddenMessage">Forbidden Message</span><span data-translate="milkbeeApp.leaguer.forbiddenSquare">Forbidden Square</span>  <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="name"><span data-translate="milkbeeApp.leaguer.name">Name</span> <span data-translate="milkbeeApp.leaguer.nikename">Nikename</span><span data-translate="milkbeeApp.leaguer.realName">Real Name</span><span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="score"><span data-translate="milkbeeApp.leaguer.score">Score</span> <span data-translate="milkbeeApp.leaguer.gold">Gold</span><span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="estateRank"><span data-translate="milkbeeApp.leaguer.estateRank">Estate Rank</span><span data-translate="milkbeeApp.leaguer.mana">Mana</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="accusation"><span data-translate="milkbeeApp.leaguer.accusation">Accusation</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="identification"><span data-translate="milkbeeApp.leaguer.identification">Identification</span><span data-translate="milkbeeApp.leaguer.authentication">Authentication</span>  <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="idPicture"><span data-translate="milkbeeApp.leaguer.idPicture">Id Picture</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="realPicture"><span data-translate="milkbeeApp.leaguer.realPicture">Real Picture</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="cardCount"><span data-translate="milkbeeApp.leaguer.cardCount">Card Count</span> <span data-translate="milkbeeApp.leaguer.commentCount">Comment Count</span><span class="glyphicon glyphicon-sort"></span></th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="leaguer in vm.leaguers track by leaguer.id">
                    <td>{{leaguer.forbidden}}<br />{{leaguer.prevent}}</td>
                    <td>{{leaguer.forbiddenDate | date:'medium'}}</td>
                    <td>{{leaguer.forbiddenMessage}}<br />{{leaguer.forbiddenSquare}}</td>
                    <td><a ui-sref="leaguer-detail({id:leaguer.id})">{{leaguer.name}}</a> <br />{{leaguer.nikename}}<br />{{leaguer.realName}}</td>
                    <td>{{leaguer.score}} <br />{{leaguer.gold}}</td>
                    <td>{{leaguer.estateRank}}<br />{{leaguer.mana}}</td>
                    <td>{{leaguer.accusation}}</td>
                    <td>{{leaguer.identification}} <br /><span style="color:green;" ng-if="leaguer.authentication" class="glyphicon glyphicon-ok" /></td>
                    <td>       
                    	<img class="zoomimg" ng-if="leaguer.idPicture" width="100px" height="100px" title="{{leaguer.idPicture}}" src="/content/images/upload/idpicture/{{leaguer.idPicture}}">
                    </td>
                    <td> 
                    	<img class="zoomimg" ng-if="leaguer.realPicture" width="100px" height="100px" title="{{leaguer.realPicture}}" src="/content/images/upload/realpicture/{{leaguer.realPicture}}">
    				</td>
                    <td>{{leaguer.cardCount}}<br />{{leaguer.commentCount}} </td>
                    <td class="text-right">
                        <div class="btn-group flex-btn-group-container">
                             <button type="submit" 
                                    ng-click="vm.monitor({id:leaguer.id})"
                                    class="btn btn-primary btn-sm">
                                <span class="glyphicon glyphicon-eye-open"></span>
                                <span class="hidden-xs hidden-sm" data-translate="milkbeeApp.leaguer.button.monitor"></span>
                            </button>
                             <button type="submit" ng-show="vm.stat>3"
                                    ng-click="vm.forbidden({id:leaguer.id})"
                                    class="btn btn-primary btn-sm">
                                <span class="glyphicon glyphicon-ban-circle"></span>
                                <span class="hidden-xs hidden-sm" data-translate="milkbeeApp.leaguer.button.forbidden"></span>
                            </button>
                             <button type="submit" ng-show="vm.stat>3"
                                    ng-click="vm.forbiddenMessage({id:leaguer.id})"
                                    class="btn btn-primary btn-sm">
                                <span class="glyphicon glyphicon-ban-circle"></span>
                                <span class="hidden-xs hidden-sm" data-translate="milkbeeApp.leaguer.button.forbiddenMessage"></span>
                            </button>
                             <button type="submit" ng-show="vm.stat==1"
                                    ng-click="vm.authentication({id:leaguer.id})"
                                    class="btn btn-primary btn-sm">
                                <span class="glyphicon glyphicon-ok-sign"></span>
                                <span class="hidden-xs hidden-sm" data-translate="milkbeeApp.leaguer.button.authentication"></span>
                            </button>
                            <button type="submit"
                                    ui-sref="leaguer.delete({id:leaguer.id})"
                                    class="btn btn-danger btn-sm">
                                <span class="glyphicon glyphicon-remove-circle"></span>
                                <span class="hidden-xs hidden-sm" data-translate="entity.action.delete"></span>
                            </button>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="text-center">
        <jhi-item-count page="vm.page" total="vm.queryCount" items-per-page="vm.itemsPerPage"></jhi-item-count>
        <uib-pagination class="pagination-sm" total-items="vm.totalItems" items-per-page="vm.itemsPerPage" ng-model="vm.page" ng-change="vm.transition()"></uib-pagination>
    </div>
</div>
